package com.dave.gd.common.util.serial;

import java.io.IOException;

/**
 * 对象序列化接口
 * @author winterlau
 */
public interface Serializer {
    
    public String name();
    
    public byte[] serialize(Object obj) throws IOException;
    
    public Object deserialize(byte[] bytes) throws IOException;
    
}
